import axios from 'axios'
axios.defaults.baseURL = 'http://localhost:3000'
export const registerApi = (data) => {
  return axios({
    method: 'post',
    url: '/reg',
    data
  })
}
export const loginApi = (data) => {
  return axios({
    method: 'post',
    url: '/login',
    data
  })
}